package com.apexsoft.test;

import com.apexsoft.aas.common.session.SessionApiWhitelist;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @Author: initializr
 * @Description:
 * @Date: Created in 2019-10-23 13:43
 * @MODIFIED BY:
 */
@Component
@Order(1)
public class DemoWhitelist extends SessionApiWhitelist {

    private static final Logger log = LoggerFactory.getLogger(DemoWhitelist.class);

    private static final String[] whilelist = {
            "/sysConfig",
            "/aServiceCall",
            "/grpcSay",
            "/test",
            "*"
    };

    @Override
    protected void buildPage() {
        for(String url:whilelist){
            log.debug("rest api whitelist: " + url);
            pageList.add(url);
        }
    }

    @Override
    protected void buildFunc() {

        super.buildFunc();
    }
}
